package io.renren.modules.forYoung.dao;

import io.renren.modules.forYoung.entity.ForYoungComment;
import io.renren.modules.forYoung.entity.ForYoungReply;
import io.renren.modules.forYoung.entity.ForYounyEntity;
import io.renren.modules.sys.entity.MysqlOssEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ForYounyDao {
    void insertFile(Map<String, Object> param);

    Integer getNewImgId();

    MysqlOssEntity getImgById(Integer id);

    void saveData(ForYounyEntity forYounyEntity);

    List getMyRecommendList(Map<String, Object> params);

    Integer getForYoungCount(Map<String, Object> params);

    ForYounyEntity getForyoungById(Integer forYoungId);

    void savaForYoungComment(ForYoungComment forYoungComment);

    Long getNewCommentId();

    void saveFirstComment(ForYounyEntity forYounyEntity);

    ForYounyEntity getForYoungEntiyById(@Param("id") Integer id, @Param("userId")Long userId);

    Integer getLike(Map params);

    void insertLike(Map params);

    void setNoLike(Map params);

    Integer getCollection(Map params);

    void insertCollection(Map params);

    void setNoCollection(Map params);

    List<ForYounyEntity> getOurList(Map<String, Object> params);

    void AddNote(Long userId);

    List<ForYoungComment> getCommentList(Map<String, Object> params);

    void AddLike(Map params);

    void ReduceLike(Map params);

    void AddCollection(Map params);

    void ReduceCollection(Map params);

    void saveReply(ForYoungReply forYoungReply);

    ForYoungComment getCommentById(int commentId);

    void updateComment(ForYoungComment forYoungComment);

    List<ForYoungReply> getReplyList(Map<String, Object> params);

    void toCommentLike(Map params);

    void toReplyLIke(Map params);

    Integer getCommentLike(Map params);

    void setNoCommentLike(Map params);

    Integer getReplyLIke(Map params);

    void setNoReplyLIke(Map params);

    Integer getNewReply();

    List<ForYounyEntity> getOurFollowList(Map<String, Object> params);

    List<ForYounyEntity> getListByDistance(Map<String, Object> params);

    List<ForYounyEntity> getMySchoolListByUserId(Map<String, Object> params);

    MysqlOssEntity getImgByName(String name);

    List getMyStudyShare(Map map);

    List getMyForYoung(Map map);

    List getSeachList(Map<String, Object> params);

    List getMyForYoungCollection(Map map);

    void delForYoung(Map map);
}
